
#include <stdio.h>
#include "sma_em.h"

int TestEm(void);

int main(void)
{
	int ret;

	ret = emInit();
	if(ret < 0)
	{
		printf("Error at emInit()\n");
		return -1;
	}

	ret = TestEm();
	if(ret < 0)
	{
		printf("Error at TestEm()\n");
		return -1;
	}

	ret = emDeinit();
	if(ret < 0)
	{
		printf("Error at emDeinit()\n");
		return -1;
	}

	return 0;
}

int TestEm(void)
{
	int ret;

	ret = emStart();
	if(ret < 0)
	{
		printf("Error at emStart()\n");
		return -1;
	}

	while(1)
	{
		;
	}

	ret = emStop();
	if(ret < 0)
	{
		printf("Error at emStop()\n");
		return -1;
	}
	return 0;
}
